package second;

import java.math.BigInteger;
import java.util.Scanner;

public class Main6 {
	public static void main(String[] args)
    {
		Scanner sc=new Scanner(System.in);
		while (true) {
			String str = sc.nextLine();
			String strs= sc.nextLine();
			if(str.equalsIgnoreCase("e") ||strs.equalsIgnoreCase("e") || str.equalsIgnoreCase("E")||strs.equalsIgnoreCase("E"))
				break;
			BigInteger s=new BigInteger(strs);
			BigInteger t = new BigInteger(str);
			BigInteger sum = s.add(t);
			System.out.println(sum.toString());
		}
    }
}

		/*BigDecimal a=new BigDecimal(1.23);
		BigDecimal b=new BigDecimal(1.1);
		System.out.println(a.add(b));*/

		/*Scanner sc=new Scanner(System.in);
		while (true) {
			String str = sc.nextLine();
			String strs= sc.nextLine();
			if(str.equalsIgnoreCase("e") ||strs.equalsIgnoreCase("e") || str.equalsIgnoreCase("E")||strs.equalsIgnoreCase("E"))
				break;
			BigInteger s=new BigInteger(strs);
			BigInteger t = new BigInteger(str);
			BigInteger sum = s.add(t);
			System.out.println(sum.toString());
		}
	}
}*/

   	 /*Scanner sc=new Scanner(System.in);
      	String s=sc.nextLine();
   	    String t=sc.nextLine();
   	    if(!s.equals("e")&& !t.equals("e")&& !s.equals("E") && !t.equals("E"))
   	    	System.out.println(add(s,t));
    }
   	private static String add(String s, String t) {
   		StringBuffer result = new StringBuffer();
   		String s1=new StringBuffer(s).reverse().toString();
   		String t1=new StringBuffer(t).reverse().toString();
   		int len1 = s1.length();
   	    int len2 = t1.length();
   	    int maxLen = len1 > len2 ? len1 : len2;
   	    int[] sum=new int[maxLen+1];
   	    if(len1 < len2)
        {
         for(int i = len1 ; i < len2; i++)
         {
         s1 += "0";
         }
         }
        else if (len1 > len2)
       {
         for(int i = len2 ; i < len1 ; i++)
         {
         t1 += "0";
         }
       }
   	    	for (int i = 0; i <maxLen; i++) {
   	    	 sum[i]=Integer.parseInt(s1.charAt(i)+"")+Integer.parseInt(t1.charAt(i)+"");
			}
   	    for (int i = 0; i <maxLen; i++) {
		    if(sum[i]>=10) {
				sum[i+1]+=sum[i]/10;
				sum[i]=sum[i]%10;
			}
		}   	 
     	for (int i =0; i <maxLen; i++) {
   		  result.append(sum[i]);
	    }
   	return result.reverse().toString();
   	}*/

